﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace 继承02
{
    class T
    {
        public int A { get; set; }
        protected int B { get; set; }
        private int C { get; set; }

        void M()
        {
            B = 0;
        }

        public T()
        {
            Console.WriteLine("T——无参");
        }
        public T(int a)
        {
            A = a;
            Console.WriteLine("T——1个");
        }
        public T(int a, int b) : this(a)
        {
            B = b;
            Console.WriteLine("T——2个");
        }
    }
}
